package etnorservice.etnor_service.domain.po;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Lob;
import java.util.Date;
import java.util.List;

// 文章实体
@Data
public class Article {
    private Long id;
    private String title;
    private String content;
    private String excerpt;
    private String coverUrl;
    private Long userId;
    private Long categoryId;
    private Integer viewCount;
    private Integer likeCount;
    private Integer commentCount;
    private Boolean isPublished;
    private Boolean isFeatured;
    private String metaKeywords;
    private String metaDescription;
    private String originalUrl;
    private Date createdAt;
    private Date updatedAt;
    private Date publishedAt;
    private Date deletedAt;
    private Integer status;

    // 非数据库字段
    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private List<Tag> tags;
    @TableField(exist = false)
    private UserInfo author;
}